#ifdef __cplusplus
extern "C"
{
#endif

#include <stdio.h>

void swap(int *a, int *b)
{
    *a = *a ^ *b;
    *b = *a ^ *b;
    *a = *a ^ *b;
}

#ifdef __cplusplus
}
#endif
